package com.alks.entity.data.entity.dispatch;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

public class VenType implements Serializable {
    private String rowid;
    private @NotBlank(
    message = "编码不能为空!"
) String typeNo;
    private @NotBlank(
    message = "厂商名称不能为空!"
) String typeName;
    private String levelCode;
    private String parentLevel;
    private String companyId;
    @JsonIgnore
    private List<VenType> children;
    private static final long serialVersionUID = 1L;

    public VenType() {
    }

    public String getRowid() {
        return this.rowid;
    }

    public void setRowid(String rowid) {
        this.rowid = rowid;
    }

    public String getTypeNo() {
        return this.typeNo;
    }

    public void setTypeNo(String typeNo) {
        this.typeNo = typeNo == null ? null : typeNo.trim();
    }

    public String getTypeName() {
        return this.typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public String getLevelCode() {
        return this.levelCode;
    }

    public void setLevelCode(String levelCode) {
        this.levelCode = levelCode == null ? null : levelCode.trim();
    }

    public String getParentLevel() {
        return this.parentLevel;
    }

    public void setParentLevel(String parentLevel) {
        this.parentLevel = parentLevel == null ? null : parentLevel.trim();
    }

    public String getCompanyId() {
        return this.companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

    public List<VenType> getChildren() {
        return this.children;
    }

    public void setChildren(List<VenType> children) {
        this.children = children;
    }
}
